home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / exams / vewd / vewdinst.bat < prev    next >
DOS Batch File  |  1995-04-07  |  1KB  |  52 lines

  1. @echo off
  2. if     "%1" == "" goto getparm
  3. if     "%2" == "" goto getparm
  4. if not "%3" == "" goto gotparm
  5. :getparm
  6. echo  
  7. echo Usage: VEWDINST source-drive destination-drive destination-path
  8. echo Where source-drive is the location of the installation files,
  9. echo Where destination-drive is the drive where VEWD will be installed, and
  10. echo Where destination-path is where to install VEWD
  11. echo Include the colon with the drive letter.
  12. echo  
  13. echo Example:  VEWDINST A: C: \HAM\VEWD
  14. echo  
  15. goto fini
  16.  
  17. :gotparm
  18. set src=%1
  19. set dst=%2
  20. set pth=%3
  21. rem To select pkunzjr.com as unzipper, remove rem from front of next line.
  22. rem set prg=pkunzjr -o
  23. rem To select unzip.exe as unzipper, remove rem from front of next line.
  24. set prg=unzip -o
  25.  
  26. mkdir %dst%%pth%        >NUL:
  27. %dst%                >NUL:
  28. cd %pth%            >NUL:
  29. mkdir data            >NUL:
  30. mkdir forms            >NUL:
  31. mkdir docs            >NUL:
  32. copy %src%form*.zip forms/v    >NUL:
  33. copy %src%emptydb.zip data/v    >NUL:
  34. copy %src%vewdman.zip docs/v    >NUL:
  35. %src%%prg% %src%vewd20e        >NUL:
  36. %src%%prg% data\emptydb        >NUL:
  37. cd docs
  38. %src%%prg% vewdman vewdman.asc    >NUL:
  39. cd ..
  40.  
  41. echo  
  42. echo VEWD Version 2.0 has been installed
  43. echo  
  44.  
  45. goto fini
  46.  
  47. :fini
  48. set src=
  49. set dst=
  50. set pth=
  51. set prg=
  52.